package cn.itsource.pethome.org.mapper;

import cn.itsource.pethome.basic.mapper.BaseMapper;
import cn.itsource.pethome.org.domain.Department;
import cn.itsource.pethome.org.util.DepartmentQuery;
import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DepartmentMapper extends BaseMapper<Department> {
    /**
     * 删除
     * @param id
     */
    void delete(Long id);

    /**
     * 查询一条部门信息
     * @param id
     * @return
     */
    Department loadOne(Long id);



    List<Department> loadParentAll();
}
